package com.syzg.base.merge.model;

import java.io.Serializable;

public class StaffPositionId implements Serializable{

	private static final long serialVersionUID = 1L;
	private Long staffId;
    private Long positionId;
    private Long orgId;
	public StaffPositionId(){
    }

    public StaffPositionId(Long staffId, Long positionId, Long orgId){
        this.staffId = staffId;
        this.positionId = positionId;
        this.orgId = orgId;
    }

    public Long getStaffId(){
        return staffId;
    }

    public void setStaffId(Long staffId){
        this.staffId = staffId;
    }

    public Long getPositionId(){
        return positionId;
    }

    public void setPositionId(Long positionId){
        this.positionId = positionId;
    }

    public boolean equals(Object other){
        if(this == other)
            return true;
        if(other == null)
            return false;
        if(!(other instanceof StaffPositionId))
            return false;
        StaffPositionId castOther = (StaffPositionId)other;
        return (getStaffId() == castOther.getStaffId() || getStaffId() != null && castOther.getStaffId() != null && getStaffId().equals(castOther.getStaffId())) && (getPositionId() == castOther.getPositionId() || getPositionId() != null && castOther.getPositionId() != null && getPositionId().equals(castOther.getPositionId())) && (getOrgId() == castOther.getOrgId() || getOrgId() != null && castOther.getOrgId() != null && getOrgId().equals(castOther.getOrgId()));
    }

    public int hashCode(){
        int result = 17;
        result = 37 * result + (getStaffId() != null ? getStaffId().hashCode() : 0);
        result = 37 * result + (getPositionId() != null ? getPositionId().hashCode() : 0);
        result = 37 * result + (getOrgId() != null ? getOrgId().hashCode() : 0);
        return result;
    }

    public Long getOrgId(){
        return orgId;
    }

    public void setOrgId(Long orgId){
        this.orgId = orgId;
    }
}